|
PHY MAKE RIGID BODY STATIC BOX
Create a new static rigid body box that is attached to an object.
PHY MAKE RIGID BODY STATIC BOX ID
PHY MAKE RIGID BODY STATIC BOX ID, material
ID
Integer
the ID number of the 3D object that you want to be represented by a static box in the simulation
material
Integer
this parameter is optional, a material can be specified if required upon creation of a static rigid body box, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its rest
This command will simulate the aforementioned object as a box within the physics simulation. As an example imagine a character object on screen. When creating a rigid body box for this object the box will fit around this character from its head to its feet. This box is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a static rigid body box it will remain immoveable and will not be affected by forces such as gravity etc.
Simulating objects within the scene as simplistic shapes allows for much faster processing and it is preferable to have objects represented by rigid body boxes and spheres where possible. After creating a rigid body box it will be entered into the simulation for processing. The physics simulation will then take over control of the object that was attached to the rigid body box.You will not be able to move this object using commands such as position object. The size of the rigid body box is calculated based on the size of the specified object.
No example code is provided for this command
|